package com.xiaxiang.xiawan.NetBean;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by mk on 2017/11/9.
 */

public class FunPhotoNetBean {
    /**
     * pageCount : 2
     * pageNo : 1
     * rows : [{"addTime":"2017-10-31 19:41:11","deleteStatus":0,"id":134,"materialUrl":"Fq20JS7Tul9IMAnX1-750YqNNQxv","name":"测试2","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=134","tails":{},"targetid":"f5ab4f6a-d236-436e-8936-b8a7b14a93b7","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/FjBEyTBwyM0Klf5n0psuET6q5qIu","userName":"15060136817"},{"addTime":"2017-11-01 10:45:34","deleteStatus":0,"id":135,"materialUrl":"FknAFzQ80eagDKb_Kfs9Wak6y23k","name":"全球风暴","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=135","tails":{},"targetid":"1dbcbaa5-4c8b-4250-a018-073ff2ee2ebb","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/FgUsiO0rxoqaONOzvghAHhUmNmkb","userName":"15060136817"},{"addTime":"2017-11-01 14:02:53","deleteStatus":0,"id":136,"materialUrl":"ltuwmm9h4S5pbrDNxQwYtH2gYTW0","name":"ds","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=136","tails":{},"targetid":"d5f74eb4-608e-4d10-b9f2-f72a17951370","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/Fh0D8X8uCifa610DTGN4fwzy2y_K","userName":"15060136817"},{"addTime":"2017-11-04 15:49:18","deleteStatus":0,"id":145,"materialUrl":"FjMVpqA0Uq9ND5EGRbt56aJKZu4E","name":"九月美宿","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=145","tails":{},"targetid":"6ae3fe22-d7b9-492d-8946-07fd2e96840c","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/FjZiDcp9OdrHeTPSdA53-NHBkqdx","userName":"15060136817"},{"addTime":"2017-11-04 16:44:13","deleteStatus":0,"id":146,"materialUrl":"FqTsfIMs5eEjfRWAFlKgLlme6tFe","name":"平潭","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=146","tails":{},"targetid":"cc3c22f0-4f98-4b6e-ade9-a28b997b1beb","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/FnQIo9JAmvC5dRszTFxYLf0Y7ep2","userName":"15060136817"},{"addTime":"2017-11-04 16:57:38","deleteStatus":0,"id":147,"materialUrl":"FgO6RMQCE7D4gvWmSOdQO5tWGFLs","name":"平潭石厝人家","shareUrl":"http://ixiaxiang.cn:8089//wxShare?id=147","tails":{},"targetid":"c2550af4-9e08-487c-9390-0e7fff60c602","type":"jpg","url":"http://oyd996phb.bkt.clouddn.com/FlK5Q2LdMGcrMWBbdG_FEKVCFOae","userName":"15060136817"}]
     * total : 7
     */

    private int pageCount;
    private int pageNo;
    private int total;
    private List<RowsEntity> rows;

    public static FunPhotoNetBean objectFromData(String str) {

        return new Gson().fromJson(str, FunPhotoNetBean.class);
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setRows(List<RowsEntity> rows) {
        this.rows = rows;
    }

    public int getPageCount() {
        return pageCount;
    }

    public int getPageNo() {
        return pageNo;
    }

    public int getTotal() {
        return total;
    }

    public List<RowsEntity> getRows() {
        return rows;
    }

    public static class RowsEntity {
        /**
         * addTime : 2017-10-31 19:41:11
         * deleteStatus : 0
         * id : 134
         * materialUrl : Fq20JS7Tul9IMAnX1-750YqNNQxv
         * name : 测试2
         * shareUrl : http://ixiaxiang.cn:8089//wxShare?id=134
         * tails : {}
         * targetid : f5ab4f6a-d236-436e-8936-b8a7b14a93b7
         * type : jpg
         * url : http://oyd996phb.bkt.clouddn.com/FjBEyTBwyM0Klf5n0psuET6q5qIu
         * userName : 15060136817
         */

        private String addTime;
        private int deleteStatus;
        private int id;
        private String materialUrl;
        private String name;
        private String shareUrl;
        private String targetid;
        private String type;
        private String url;
        private String userName;

        public static RowsEntity objectFromData(String str) {

            return new Gson().fromJson(str, RowsEntity.class);
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public void setDeleteStatus(int deleteStatus) {
            this.deleteStatus = deleteStatus;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setMaterialUrl(String materialUrl) {
            this.materialUrl = materialUrl;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setShareUrl(String shareUrl) {
            this.shareUrl = shareUrl;
        }

        public void setTargetid(String targetid) {
            this.targetid = targetid;
        }

        public void setType(String type) {
            this.type = type;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getAddTime() {
            return addTime;
        }

        public int getDeleteStatus() {
            return deleteStatus;
        }

        public int getId() {
            return id;
        }

        public String getMaterialUrl() {
            return materialUrl;
        }

        public String getName() {
            return name;
        }

        public String getShareUrl() {
            return shareUrl;
        }

        public String getTargetid() {
            return targetid;
        }

        public String getType() {
            return type;
        }

        public String getUrl() {
            return url;
        }

        public String getUserName() {
            return userName;
        }
    }
}
